/**
 * Project Name:jiuselu-parent
 * File Name:CustomerApiConfig.java
 * Package Name:com.fxp.project.jiuselu.web.config
 * Date:2021-11-09 10:21 下午
 * Copyright (c) 2021, Jason.Wang All Rights Reserved.
 */
package com.fxp.project.jiuselu.web.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * ClassName: CustomerApiConfig<br/>
 * Function: 系统配置<br/>
 * Date: 2021-11-09 10:21 下午<br/>
 *
 * @author Jason.Wang
 * @version 1.0.0
 * @see
 * @since JDK 8
 */
@Component
@ConfigurationProperties(prefix = "jiuselu")
public class CustomerApiConfig {
    /** 上传路径 */
    private static String profile;

    /** 图片的访问域名 */
    private static String imageUrl;
    /** 密码解密的私钥 */
    private String privateKey;

    public static String getProfile()
    {
        return profile;
    }

    public void setProfile(String profile)
    {
        CustomerApiConfig.profile = profile;
    }

    public static String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        CustomerApiConfig.imageUrl = imageUrl;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    /**
     * 获取上传路径
     */
    public static String getUploadPath()
    {
        return getProfile() + "/upload";
    }
}
